From: Jasper St. Pierre Date: Fri, 21 Dec 2012 14:20:04 +0000 (-0500) Subject: boxpointer: Defer re-allocation after a flip X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5174 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=43876a9357495b1d4bb8aa97ba9c4afd477d56e3;p=gnome-shell.git boxpointer: Defer re-allocation after a flip As we may be flipping the box pointer in response to re-allocation, like the addition of a new actor to the boxpointer, we can't queue a re-layout while in a re-layout, so defer. https://bugzilla.gnome.org/show_bug.cgi?id=690608 --- diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index 8973404b4..9fa800cdb 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -582,7 +582,10 @@ const BoxPointer = new Lang.Class({ if (this._arrowSide != arrowSide) { this._arrowSide = arrowSide; this._reposition(); - this._container.queue_relayout(); + Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() { + this._container.queue_relayout(); + return false; + })); } },